package mini;
import java.util.LinkedList;
import java.util.List;

import mini.expr.Expr;


//added for 2c
public class ParamList {

    private List<String> parameterlist;

    public ParamList(String name) {
        parameterlist = new LinkedList<String>();
        parameterlist.add(name);
    }

    public ParamList(String name, ParamList parlist) {
        parameterlist = new LinkedList<String>();
        //we need ot add the string to the front of the list
        parameterlist.add(name);
        // And then everything in the other list
        for( String otherName : parlist.getParamList() ) {
        	parameterlist.add(otherName);
        }
    }

    public List<String> getParamList() {
        return parameterlist;
    }
}